package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jackie on 2017/10/31.
 * 品质维度请求实体
 */

public class QualityInfoResponseBean implements Parcelable {

    /**
     * name : 测试_品质
     * qualityUkid : 100000110
     */

    private String name;
    private String qualityUkid;
    private boolean isSelect;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getQualityUkid() {
        return qualityUkid;
    }

    public void setQualityUkid(String qualityUkid) {
        this.qualityUkid = qualityUkid;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.qualityUkid);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public QualityInfoResponseBean() {
    }

    protected QualityInfoResponseBean(Parcel in) {
        this.name = in.readString();
        this.qualityUkid = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Creator<QualityInfoResponseBean> CREATOR = new Creator<QualityInfoResponseBean>() {
        @Override
        public QualityInfoResponseBean createFromParcel(Parcel source) {
            return new QualityInfoResponseBean(source);
        }

        @Override
        public QualityInfoResponseBean[] newArray(int size) {
            return new QualityInfoResponseBean[size];
        }
    };
}
